
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit"> 
		<meta content="always" name="referrer">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>关于我们</title>
    <!--[if lt IE 9]>
			<script type="text/javascript">
				window.location.href = "tip.html"
			</script>
		<![endif]-->
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/order.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="lib/layui/css/layui.css" />
    <script src="js/jquery.min.js"></script>
    <script src="js/swiper.min.js"></script>
    <script src="js/wang.js"></script>
    <script src="js/ajaxSet.js" type="text/javascript" charset="utf-8"></script>
	<style>
		#demo2{
			float: left;
		}
		.confirm .uploadBtn {
			float: left;
		}
		#userName{
			float: left;
			width: 75px;
			text-align: center;
			position: relative;
			cursor: pointer;
			display: none;
		}
		#userName li:after{
			display:block;content:"";visibility:hidden;height:0;
			border-bottom:  1px solid #000000;
		}
		#userName dl{
			top: 42px;
			width: 100%;
			position: absolute;
			display: none;
			background: #fff;
			z-index: 9999;
		}
		.ct_header {
			width: 1200px;
			margin: 20px auto;
		    border-bottom: 1px solid #DDD;
		    padding: 0px 15px 10px 0px;
		}
		.ct_title {
		    font-size: 25px;
		    margin-left: 20px;
		    /* font-weight: normal; */
		    color: #777;
		}
		.ct_body {
			width: 1000px;
			margin: 0 auto;
		    padding: 25px 0px;
		    color: #666;
		    line-height: 170%;
		    margin-bottom: 20px;
		    font-size: 14px;
		}
		.ct_body p {
		    text-indent: 27px;
		    margin: 10px 0 25px 0;
		}
	</style>
</head>
<body>

<div id="qq"></div>
<div class="header">
	<div class="w_1190">
		<div class="h_right fr">
			<a href="index.html">YIXA首页</a>
			<a href="dingdan.html">我的订单</a>
			<a href="zhanghu.html">账户设置</a>
			<a href="http://52lvu.cn/about.html">关于我们</a>
		</div>
		<div class="h_left">
			<ul id="userName">
				<li></li>
				<dl>
					<dd>退出登录</dd>
				</dl>
			</ul>
			<!-- 未登录 -->
				
				<a href="login.html" class="c_01afff" id="login">登录</a>
				<a href="register.html" class="registerno">免费注册</a>
			<!-- 已登录 -->
		</div>
	</div>
</div>
<script type="text/javascript">
	
	$("#qq").load("lib/qq.html");$("#footer").load("lib/footer.html");
	
	$("#userName").on("click",function(){
	    $(this).find("dl").slideToggle(200)
	})
	
	$("#userName dd").on("click",function(){
	    $.ajax({
	    	type:"post",
	    	url:"http://52lvu.cn:8080/api/login/logout",
	        data:{
	            userId : token.userId
	        },success : function (result){

	            
	            if (result.resultCode == 200) {
	            	localStorage.removeItem("token");
	            	window.location.href="login.html"
	            }
	            
	        },error : function (e){
	            layer.msg("请求错误，请稍后重试",{icon:2,time:2000})
	        }
	    });
	})
	
	var token = JSON.parse(localStorage.getItem('token'));
	
	if (token) {
		var expiredTime = 1800000;
		var loginTime = token.loginTime
		var nowTime = new Date().getTime();
		
		if ( (nowTime - loginTime) > expiredTime ) {
			localStorage.removeItem("token");
			window.location.href = "login.html";
		}else{
			$("#userName").show(); 
			$(".registerno").hide();
			$("#login").hide()
			$("#userName li").html(token.userName)
		}
	}else{
	    window.location.href="login.html";
	}
	
</script>
		<div class="ct_header">
			<h1 class="ct_title">关于我们</h1>
		</div>
		<div class="ct_body">
		</div>
		
		<div id="footer"></div>
    	
	</body>
</html>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	layui.use(["layer"],function(){
	    $.ajax({
		    type:"post",
		    url:"http://52lvu.cn:8080/api/about/hotHotel",
		    success : function (result){
		        $(".ct_body").html(result.data[0].detail)
		        
		    },error : function (e){
		        layur.msg("请求错误,请稍后重试",{icon:2,time:2000})
		    }
		});
	})
	
</script>